<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>任务反馈页</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
	<script type="text/javascript" src="<%=path%>/resources/script/proms/task/task_detail.js"></script>

  </head>
  
  <body>
    <div class="easyui-layout" fit="true">
    	<div data-options="region:'north', title:'任务详情'" style="height : 400px;">
    		<input id="id" name="id" type="hidden" value="${task.id }" />
    		<input id="type" name="type" type="hidden" value="${type }" />
    		<%-- <input id="isAudit" type="hidden" value="${isAudit }" /> --%>
    		<input id="fundSources" name="fundSources" type="hidden" value="${task.fundSources }" />
    		<input id="isTaskPlan" name="isTaskPlan" type="hidden" value="${isTaskPlan }" />
    		<table class="edit-table">
				<tr>
					<th>所属指标：</th>
					<td colspan="7">
						<input type="hidden" id="projectIndexId" name="projectIndexId" value="${task.projectIndexId }"/>
						<label>${task.projectIndexName }</label>
					</td>
				</tr>
				<tr>
					<th>任务主题：</th>
					<td>
						<label>${task.name }</label>
					</td>
				</tr>
				<tr>
					<th>计划完成时间段：</th>
					<td colspan="7"><label>${task.startTime }</label>～<label>${task.endTime }</label></td>
				</tr>
				<tr>
					<th>资金来源</th>
					<td><label id="fundsources_label"></label></td>
					<th>计划使用资金：</th>
					<td>
						<label>￥${task.planAmount }</label>
						<input type="hidden" id="planAmount" name="planAmount" value="${task.planAmount }"/>
					</td>
					<th>实际使用资金</th>
					<td><label id="factAmount_label"></label><input type="hidden" id="factAmount" value="${task.factAmount }"/></td>
					<th>任务进度</th>
					<td><label id="progress_label"></label><input type="hidden" id="progress" value="${task.progress }"/></td>
				</tr>
				<tr>
					<th>相关参与人:</th>
					<td colspan="7">${task.taskActorNames }</td>
				</tr>
				<tr>
					<th>任务描述:</th>
					<td colspan="7"><textarea id="remark" name="remark" readonly="readonly" disabled="disabled" style="width: 98%;height: 80px;">${task.remark }</textarea></td>
				</tr>
				<tr id="task_plan_tr">
					<th>任务计划</th>
					<td colspan="7"><table id="dg_task_plan"></table></td>
				</tr>
				<tr>
					<th>预佐证材料:</th>
					<td colspan="7"><div id="_fileupload"></div></td>
				</tr>
			</table>
    	</div>
   		<div region="center" style="height: 100%;">
   			<!-- DataGrid -->
		   <!--  <table id="dg" class="easyui-datagrid" title="任务反馈列表" style="width: auto; height: auto;"
		    	data-options="url:'feedback/queryList',
		    			fit:true,
		    			singleSelect:true,
		    			rownumbers:true,
		    			toolbar:'#tb',
		    			pagination:true">
		    	<thead>
		    		<tr>
		    			<th data-options="field:'id',hidden:true">ID</th>
		    			<th data-options="field:'name', width:150">任务名称</th>
		    			<th data-options="field:'remark', width:400">任务反馈</th>
		    			<th data-options="field:'progress', width:100">任务完成进度</th>
		    			<th data-options="field:'factAmount', width:150">实际使用资金</th>
		    			<th data-options="field:'createTime', width:200">反馈时间</th>
		    		</tr>
		    	</thead>
		    </table> -->
		    <table id="dg"></table>
		    <!-- toolbar -->
		    <div id="tb" style="padding: 5px; height: auto;">
		    	<!-- opreate -->
		    	<div style="margin-bottom: 5px; text-align: right;">
		    		<a href="javascript:void(0);" id="detail" class="easyui-linkbutton" title="查看" iconCls="icon-detail" plain="true">查看</a>
		    		<a href="javascript:void(0);" id="add" class="easyui-linkbutton" title="添加" iconCls="icon-add" plain="true">添加</a>
		    		<a href="javascript:void(0);" id="edit" class="easyui-linkbutton" title="修改" iconCls="icon-edit" plain="true">修改</a>
		    		<!-- <a href="javascript:void(0);" id="audit" class="easyui-linkbutton" title="审核" iconCls="icon-edit" plain="true">审核</a> -->
		    		<a href="javascript:void(0);" id="remove" class="easyui-linkbutton" title="删除" iconCls="icon-remove" plain="true">删除</a>
		    	</div>
		    </div>
		    
		    <!-- add/edit window -->
		    <div id="win" class="easyui-window"
		    	 data-options="modal:true,
		    	 				closed:true,
		    	 				maximizable:true,
		    	 				minimizable:false,
		    	 				collapsible:false,
		    	 				iconCls:'icon-save',
		    	 				draggable:false">
		    	 <iframe id="contentFrame" src="" width=100% height=99% marginwidth=0 framespacing=0 marginheight=0 frameborder=no scrolling=no></iframe>
		    </div>
   		</div>
   	</div>
  </body>
</html>

